import React from "react";
import { RouteObject } from "@/routes/interface";
import Layout from "@/layouts";
import lazyLoad from "@/routes/utils/lazyLoad";

const log: Array<RouteObject> = [
	{
		element: <Layout />,
		meta: {
			title: "日志管理",
			key: "log"
		},
		children: [
			{
				path: "/log/api",
				element: lazyLoad(React.lazy(() => import("@/pages/log/Api/index"))),
				meta: {
					title: "接口日志",
					requiresAuth: true,
					key: "/log/api",
					icon: ""
				}
			},
			{
				path: "/log/operation",
				element: lazyLoad(React.lazy(() => import("@/pages/log/Operation/index"))),
				meta: {
					title: "操作日志",
					requiresAuth: true,
					key: "/log/operation",
					icon: ""
				}
			},
			{
				path: "/log/login",
				element: lazyLoad(React.lazy(() => import("@/pages/log/Login/index"))),
				meta: {
					title: "登录日志",
					requiresAuth: true,
					key: "/log/login",
					icon: ""
				}
			},
		]
	}
];

export default log;
